<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><?php echo $this->config->item('site_name').' - '.$this->config->item('site_description');?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <script type="text/javascript" src="<?php echo base_url();?>asset/javascript/jquery.js"></script>
    <script type='text/javascript' src='<?php echo base_url();?>asset/plugin/lightbox/facebox.js'></script>
    <script type="text/javascript" src="<?php echo base_url();?>asset/plugin/calendar/jquery.calendar.js" ></script>
    
	<script type="text/javascript" src="<?php echo base_url();?>asset/js/script.js" ></script>
    <script type='text/javascript'>
        var site = "<?php echo site_url()?>";
        var loading_image_large = "<?php echo base_url();?>asset/images/loading_large.gif";
        var loading_image_small = "<?php echo base_url();?>asset/images/loading.gif";
    </script>
    <script type="text/javascript" src="<?php echo base_url();?>asset/javascript/app.js" ></script>
    <script>
		function load_submit(div){
			var image_load = "<div class='ajax_loading'><img src='"+loading_image_large+"' /></div>";
			$.ajax({
				beforeSend: function(){
					$(div).html(image_load);
				},
				success: function(response){
				},
				dataType:"html"
			});
		}
		function show(page,div){
			do_scroll(0);
			var image_load = "<div class='ajax_loading'><img src='"+loading_image_large+"' /></div>";
			var site = "<?php echo site_url()?>";
			$.ajax({
				url: site+"/"+page,
				beforeSend: function(){
					$(div).html(image_load);
				},
				success: function(response){			
					$(div).html(response);
				},
				dataType:"html"
			});
			return false;
		}
	</script>
	<script type="text/javascript">
	function fokus(){
		// document.getElementById('user').focus();	
	}
	function showClock(){
		// now = new Date();
		// var clock=new Date();
		// var hours=clock.getHours();
		// var minutes=clock.getMinutes();
		// var seconds=clock.getSeconds();
		// // var hari=now.getDay();
		// // for a nice disply we'll add a zero before the numbers between 0 and 9
		// if (hours<10){
			// hours="0" + hours;
		// }
		// if (minutes<10){
			// minutes="0" + minutes;
		// }
		// if (seconds<10){
			// seconds="0" + seconds;
		// }
		// document.getElementById('tampilJam').innerHTML=hours+":"+minutes+":"+seconds;
		// t=setTimeout('showClock()',500);
	}
	function tanyax(){
		if(confirm('KONFIRMASI LogOut\nUntuk Keluar Dari Aplikasi Tekan Tombol OK')){
			return true;
		}else{
			return false;
		}
	}
	</script>
    <link href="<?php echo base_url();?>asset/theme/style.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url();?>asset/plugin/lightbox/facebox.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url();?>asset/theme/topmenu.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url();?>asset/plugin/calendar/jquery.calendar.css" rel="stylesheet"  type="text/css" />
    <link rel="shorcut icon" href="<?php echo base_url()?>asset/images/favicon.png" />
	
</head>
<body onload="showClock(); fokus();">
    <div id='container'>
        <div id='header'>
			<div class='clock'><a href="#" class="btncssadt">Home</a></div>
            <div class='logo'>
				<span style="float:right;"></span>
			</div>
			<div >
				<table>
					<tr>
						<td class="navigationBar">
							<table>
								<tr>
									<td class="navigationBar">
										<input type="text" name="query" id="tequery" size="135">
										<br>
										<a href="#">Search</a> <a href="#" class='topopup'>Customize Search</a>
										<?php 
										echo ('Jenis Koleksi : ');
										//form_dropdown(nama value, object yg dilempar oleh controller, name display)
										echo form_dropdown('kd_jenis_koleksi', $ddlJenisKol, 'jenis_koleksi', 'style="width:520px"');
										?>  
									</td>
									<td class="navigationBar">
										<a href="<?php echo site_url('dosen/insert');?>">Input</a><br>
										<a href="#">Profile</a>	
									</td>									
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
        </div>
        <div id='content'>
            <?php
            // if(!is_logged_in()){
				// $data = $this->auth->setChaptcha();
				// $this->load->view('home/login_form',$data);
            // }else{
                //$this->load->view('dosen/insert_v');
				//echo ("Content Here");
				
            // }
            ?>
			<div class="contentStyleTable">
		<table>
			<tr>
				<td>
					<h2>Create Repository Collection</h2>
				</td>
			</tr>
		</table>
		<br>
		<div>
		<table>
		<tr><td>
			<table><form action="<?php echo site_url('dosen/do_Saving');?>" method="POST">
				<tr>
					<td>
						<p>Title</p>
					</td>
					<td>
						<input type="text" name="txtTitle" id="txtTitle" size="135">
					</td>
				</tr>
				<tr>
					<td>
						<p>Abstract</p>
					</td>
					<td>
						<textarea name='txtAbstract' id='txtAbstract' cols='135' rows='5'></textarea>
					</td>
				</tr>
				<tr>
					<td>
						Jenis Koleksi
					</td>
					<td>
						<?php
						echo form_dropdown('ddlJenisKoleksiInsert', $ddlJenisKol, 'jenis_koleksi', 'style="width:520px"');
						?>
					</td>
				</tr>
				<tr>
					<td>
						<p>Penulis</p>
					</td>
					<td>
						Nomor : <input type="text" name="txtNoAuthor" id="txtNoAuthor" size="50%"> Nama : <input type="text" name="txtAuthor" id="txtAuthor" size="63%">
					</td>
				</tr>
				<tr>
					<td>
						<p>Pembimbing</p>
					</td>
					<td>
						Nomor : <input type="text" name="txtNoAdvisors" id="txtNoAdvisors" size="50%"> Nama : <input type="text" name="txtAdvisor" id="txtAdvisor" size="63%">
					</td>
				</tr>
				<tr>
					<td>
						Jurusan
					</td>
					<td>
						<?php
						echo form_dropdown('ddlJurusanInsert', $ddlJurusan, 'jenis_koleksi', 'style="width:520px"');
						?>
					</td>
				</tr>
				<tr>
					<td>
						Tgl. Release
					</td>
					<td>
						<input type="date" name="dtRelase" id="dtRelase" >
					</td>
				</tr>
				<tr>
					<?php echo $error;?>
					<input type="submit" value="Simpan" />
				</tr>
				<!--
				<tr>
					<td>
						File
					</td>
					<td>
						
						<?php //echo form_open_multipart('dosen/do_upload');?>
						<input type="file" name="userfile[]" size="20" multiple />					 
						<input type="submit" value="Simpan" />
					   
					</td>
				</tr>--></form>
			</table>
		</tr></td>
		</table>
		</div>
	</div>
        </div>
        <div id='footer'>
			<div id='footer-profil'>
				<!-- Foot identitas -->
			</div>
            <div class='left_footer'>
				<!-- Foot Left Identitas -->
			</div>
        </div>
    </div>
</body>
</html>


<div id="toPopup"> 
    	
        <div class="close"></div>
       	<span class="ecs_tooltip">Press Esc to close <span class="arrow"></span></span>
		<div id="popup_content"> <!--your content start-->
           <table>
			<tr>
				<td>
					<?php echo $criteria;?>
				</td>
				<td>
					<?php echo $operCrit;?>
				</td>
				<td>
					<input type="text" name="txtCriteria1" id="txtCriteria1" size="75">
				</td>
			</tr>
			<tr>
				<td>
					<?php echo $operator;?>
				</td>
				<td>
					<?php echo $criteria;?>
				</td>
				<td>
					<?php echo $operCrit;?>
					<input type="text" name="txtCriteria2" id="txtCriteria2" size="57">
				</td>
			</tr>
			<tr>
				<td>
					<?php echo $operator;?>
				</td>
				<td>
					<?php echo $criteria;?>
				</td>
				<td>
					<?php echo $operCrit;?>
					<input type="text" name="txtCriteria3" id="txtCriteria3" size="57">
				</td>
			</tr>
		   </table>
        </div> <!--your content end-->
    
</div> <!--toPopup end-->

<div class="loader"></div>
<div id="backgroundPopup"></div>